﻿<Window x:Class="Serietheque.Fenetres.ChoixSerie"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Choisir la série"
        ResizeMode="NoResize"
        WindowStyle="ToolWindow"
        Loaded="Window_Loaded" 
        SizeToContent="WidthAndHeight" MaxHeight="200" >

    <Window.Resources>
        <DataTemplate x:Key="DataTemplate1">
            <StackPanel >
                <TextBlock Text="{Binding Path=NomSerie,Mode=TwoWay}" />
                <TextBlock>Id  : <TextBlock Text="{Binding Path=Id,Mode=TwoWay}"/></TextBlock>
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="33"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="33"/>
        </Grid.RowDefinitions>
        <StackPanel Margin="5,5,5,0" Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Top" Height="23">
            <TextBox x:Name="textBox1" Width="155" Height="23" Margin="0,0,5,0" VerticalAlignment="Top"/>
            <Button Content="Chercher" HorizontalAlignment="Right" x:Name="chercherBtn" Width="75" Click="chercherBtn_Click" VerticalAlignment="Top" Height="23" IsDefault="True" />
        </StackPanel>
        <ListBox x:Name="listBox2"
                 ItemTemplate="{DynamicResource DataTemplate1}"
                 SelectionMode="Single" Grid.Row="1" Margin="5,0,5,0"/>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Height="23" Margin="5,0,5,5" Grid.Row="2" >
            <Button Content="Fermer" x:Name="fermerBtn" Width="75" IsCancel="True" Click="fermerBtn_Click" />
            <Button Content="Choisir" x:Name="choisirBtn" Width="75" Click="choisirBtn_Click" Margin="5,0,5,0"/>
            <Button Content="No Tvdb" x:Name="sansTvdbBtn" Width="75" Click="sansTvdbBtn_Click" />
        </StackPanel>
    </Grid>
</Window>